FROM php:7.2-fpm
LABEL Author="东港市云港网络科技工作室"
LABEL Version="2024.10.21"
LABEL Description="PHP 7.2镜像，包含WordPress常用扩展和Redis扩展 "
RUN sed -i 's/deb.debian.org/mirrors.tuna.tsinghua.edu.cn/g' /etc/apt/sources.list  &&\
    sed -i 's/security.debian.org/mirrors.tuna.tsinghua.edu.cn/g' /etc/apt/sources.list  &&\
    apt-get update && apt-get install -y --no-install-recommends libfreetype6-dev \
    libjpeg62-turbo-dev \
    libpng-dev \
    libhiredis-dev \
    libxml2-dev \
    libmagickwand-dev \
    libzstd-dev \
    g++ \
    make \
    autoconf \
    file \
    imagemagick \
    && docker-php-ext-install pdo_mysql fileinfo opcache exif mysqli \
    && echo yes\n | pecl install imagick igbinary zstd redis-5.0.0 \
    && docker-php-ext-enable imagick igbinary zstd redis
RUN apt-get purge -y --auto-remove && rm -r /var/lib/apt/lists/*